package cc.eddic.pratice.programmingparadigms.exam.domain;

import lombok.AccessLevel;
import lombok.Getter;
import lombok.Setter;

@Getter
public class Option {
    public Option(String answer, char choice, boolean isCorrectAnswer) {
        this.answer = answer;
        this.choice = choice;
        this.isCorrectAnswer = isCorrectAnswer;
    }

    public void changeToCorrectAnswer(){
        this.isCorrectAnswer = true;
    }

    private final String answer;
    private final char choice;
    private  boolean isCorrectAnswer;

    @Setter(AccessLevel.PACKAGE)
    private Question question;
}
